
const {override, fixBabelImports, addLessLoader} = require('customize-cra');
module.exports = override(
    // 针对antd 实现按需打包  根据 import 来打包 
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true,    // 自动打包相关的样式
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: {'@primary-color': '#1DA57A'},
}),
)